/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase2203 - Demo1
 * <p>Powered by webrx On 2022-07-19 14:36:26
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo1 {
    public static void main(String[] args) {
        Student s = new Student(100,"李四");

        System.out.println(s);

        //var java10 推断类型
        var s2 = new Student();
        s2.setId(200);
        s2.setName("张三丰");
        System.out.println(s2);

        System.out.println(s.getName());
        System.out.println(s2.getName());

    }
}
